<?php


if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class m_dashboard extends CI_Model {

	function total_dokter(){
		return $this->db->count_all('dokterhewan');
	}

	function total_user(){
		$ambil = $this->db->get_where('user', array('status' => '1' ));
		return $ambil->num_rows();
	}

	function total_hewan(){
		return $this->db->count_all('periksa_hewan');
	}

	function total_pemilik(){
		return $this->db->count_all('pemilik_hewan');
	}

}